﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using cludg.Services.Security.Permissions;

namespace cludg.Web.RateContentModule.Extensions
{
	public class PermissionProvider : IPermissionProvider
	{
		public IEnumerable<Permission> GetPermissions()
		{
			return new Permission[]
			{
				new RoleBasedPermission
				{
					Name = "RateStory",
					Caption = "Голосовать",
					Roles = cludg.Domain.Users.Roles.NotAnonymouse
				}
			};
		}
	}
}